//
//  GifModel.m
//  ToYourHeartNews
//
//  Created by XJing on 16/1/18.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥. All rights reserved.
//

#import "GifModel.h"


@implementation GifModel
-(void)dealloc
{
    [_thumb release];
    [_name release];
    [_title release];
    [_width release];
    [_height release];
    [super dealloc];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"gif"]) {
        NSDictionary *dic = value[0];
        self.thumb = dic[@"thumb"];
        self.width = dic[@"width"];
        self.height = dic[@"height"];
    }
    if ([key  isEqualToString:@"author"]) {
        self.name = value[@"name"];
    }
}
@end
